package org.tissou.client.DonneesAAfficher;

import org.tissou.client.Services.CategorieInfos;
import org.tissou.client.Services.MonException;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 03/03/2009
 * Time: 21:12:32
 * To change this template use File | Settings | File Templates.
 */
public class Element_Categorie implements IsSerializable,Element {
  CategorieInfos categorie;

  public Element_Categorie() {
  }

  public CategorieInfos getCategorie() {
    return categorie;
  }

  public Element_Categorie(CategorieInfos categorie) {

    this.categorie = categorie;
  }

  public Widget ConvertirEnWidget() {
    return new HTML(categorie.getNom());
  }

  public Element clone() {
    return new Element_Categorie();
  }

  public void setCaracteristique(CategorieInfos caracteristique) {
      categorie = caracteristique;
  }
}
